<%--
  Created by IntelliJ IDEA.
  User: lqk21
  Date: 2024/12/26
  Time: 19:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加信息</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f4f4f4;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        th {
            background-color: #f2f2f2;
            color: #333;
        }

        input[type="text"], input[type="date"] {
            width: calc(100% - 22px);
            padding: 8px;
            margin: 5px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        input[type="submit"], input[type="reset"] {
            padding: 8px 16px;
            margin-top: 10px;
            border: none;
            border-radius: 4px;
            background-color: #5cb85c;
            color: white;
            cursor: pointer;
        }

        input[type="submit"]:hover, input[type="reset"]:hover {
            background-color: #4cae4c;
        }

        input[type="reset"] {
            background-color: #d9534f;
        }

        input[type="reset"]:hover {
            background-color: #c9302c;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>添加信息</h1>
    <form action="tbStudentById" method="post">
        <table>
            <tr>
                <th>名称:</th>
                <td><input type="text" name="name" placeholder="请输入课程名称"></td>
            </tr>
            <tr>
                <th>章节:</th>
                <td><input type="text" name="count" placeholder="请输入课程人数"></td>
            </tr>
            <tr>
                <th>开课时间:</th>
                <td><input type="date" name="startDate" placeholder="请输入开课时间"></td>
            </tr>
            <tr>
                <th>结课时间:</th>
                <td><input type="date" name="endDate" placeholder="请输入结课时间"></td>
            </tr>
            <tr>
                <th>讲师:</th>
                <td><input type="text" name="teacher" placeholder="请输入讲师"></td>
            </tr>
        </table>
        <div style="text-align: center;">
            <input type="submit" value="添加">
            <input type="reset" value="重置">
        </div>
    </form>
</div>
</body>
</html>
